ActiveAdmin.register AppVersion do
  permit_params :platform, :ver, :path
  filter :platform
  filter :ver

  form html: {enctype: 'multipart/form-data'} do |f|
    f.inputs '' do
      f.input :platform, as: :select, collection: [["安卓", "android"], ["苹果", "ios"]], include_blank: false
      f.input :ver
      f.input :path, as: :file
    end
    f.submit("提交")
  end
end
